﻿@model List<DLULearningNetworkModel.Category>
@using DLULearningNetwork.Libs;

<table class="tbl1" id="categoryTable">
    <tr >
        <th style="text-align:center;">
            Tên Lĩnh Vực
        </th>
        <th style="text-align:center;">
            Sửa
        </th>
        <th style="text-align:center;">
            Xóa
        </th>
    </tr>

@for (int i = 0; i < Model.Count;i++ )
{
    ViewBag.Index = i;
    @Html.Partial("CategoryRow", Model[i])
}

</table>
<div class="pagination pagination-left" style="margin-left: 3px;height:30px;">
    <ul class="pager">
        @Html.Partial("UCPager2", new DLULearningNetwork.ViewModels.PagerViewModel2(ViewBag.TotalItems,
                    Constants.DEFAULT_PAGESIZE,
                    Constants.DEFAULT_NUMBER_OF_ITEMS_PERPAGE,
                    ViewBag.CurrentPage))
    </ul>
</div>